import {reactive} from "vue";
import {defineStore} from "pinia";

const useAdminStore = defineStore('admin', ()=>{
    const data = reactive({
        name: '',
        token: '',
        expireData: '',
    })

    const save = (name, token, expireData) => {
        data.name = name
        data.token = token
        data.expireData = expireData
    }

    return {data, save}
}, {
    persist: true
})

export {useAdminStore}